import service from "..";
 // 获取首页轮播图数据
export function getBanner(){
    return service({
        method:'GET',
        url:'/banner?type=2'
    })
}
// 获取推荐好歌单
export function getMusicList(){
    return service({
        method:'GET',
        url:'/personalized?limit=3'
    })
}
// 搜索歌曲
export function searchMusic(keyWord){
    return service({
        method:'GET',
        url:`/search?keywords=${keyWord}`
    })
}
// 登录
export function getPhoneLogin(data){
    return service({
        method:'GET',
        url:`/login/cellphone?phone=${data.phone}&password=${data.password}`
    })
}
//获取用户详情
export function getUserDetail(id){
    return service({
        method:'GET',
        url:`/user/detail?uid=${id}`
    })
}